# CMakeList.txt: 顶层 CMake 项目文件，在此处执行全局配置
# 并包含子项目。
#
cmake_minimum_required (VERSION 3.8)

# 项目名称
project ("ErkangShuttle")

# 设置库目录
include_directories($ENV{VULKAN_SDK}/Include)
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
	link_directories($ENV{VULKAN_SDK}/Lib32)
endif()
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
	link_directories($ENV{VULKAN_SDK}/Lib)
endif()

# 设置编译目录
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

# 包含子项目
add_subdirectory ("ErkangShuttle")
